/// BackendLoginDto
class BackendLoginDto {
  /// 用户名
  final String userName;
  /// 密码
  final String password;
  /// 系统代码：1-客户端 2-平台端 3-核销代理端 4-财务代理端
  final int systemCode;

  BackendLoginDto({
    required this.userName,
    required this.password,
    required this.systemCode,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['userName'] = userName;
    data['password'] = password;
    data['systemCode'] = systemCode;
    return data;
  }

  factory BackendLoginDto.fromJson(Map<String, dynamic> json) {
    return BackendLoginDto(
      userName: json['userName'],
      password: json['password'],
      systemCode: json['systemCode'],
    );
  }
}